<?php
namespace app\common;
use think\Controller;
use think\Request;

class BaseController extends Controller{
    
    public function __construct(){  
        header("Access-Control-Allow-Origin: *");
        header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
        $this->request = Request::instance();
    }
    
}